package com.qf.admin.service.impl;

import com.qf.admin.dao.PayDao;
import com.qf.admin.dao.impl.PayDaoImpl;
import com.qf.admin.domain.Pay;
import com.qf.admin.service.PayService;
import com.qf.commons.TableData;

public class PayServiceImpl implements PayService {
    PayDao payDao =new PayDaoImpl();
    @Override
    public TableData<Pay> getAllPay(Integer limit, Integer offset) {

        TableData<Pay> allPay = payDao.getAllPay(limit, offset);
        return allPay;
    }

    @Override
    public void deletePay(Integer userID) {
        payDao.deletePay(userID);
    }

    @Override
    public void updatePay(Integer userID) {
        payDao.updatePay(userID);
    }
}
